<!DOCTYPE html>
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
			xmlns:h="http://java.sun.com/jsf/html"
			xmlns:f="http://java.sun.com/jsf/core"
			xmlns="http://www.w3.org/1999/xhtml"
			xmlns:p="http://primefaces.org/ui">
	<f:metadata>  

   	</f:metadata>  

	<h1>Login</h1>
	
	<h:form id="form1">
		<p:messages id="messages" showDetail="false" autoUpdate="true" closable="true" /> 
	</h:form>
	
	<h:form prependId="false"  >
		<div class="username">
			<h:outputLabel for="j_username" value="Usuario" />
			<p:inputText id="j_username" value="#{loginBean.usuario}" required="true" requiredMessage="Debe ingresar un usuario."></p:inputText>
		</div>	
		<div class="password">
			<h:outputLabel for="j_password" value="Clave" />
			<p:password id="j_password" value="#{loginBean.password}" required="true" requiredMessage="Debe ingresar una clave."></p:password>
	 	</div> 
	
		<p:commandButton id="submit" action="#{loginBean.login}" value="Aceptar" ajax="false"/>
	</h:form>

</ui:composition>